<?php include ("checkLanguage.php");?>

<table border="0">
	<form action="index.php?co=newPage&m=addNewPage" method="POST">
	<tr> 
		<td>Sprache ist:</td> 
		<td><input type="text"id="lid" style="font-size: 92%" name="lid" value="<?=$sDefaultS?>" size="7" disabled="disabled"></td>
		<td></td>
		<td align="right">Seitentyp ist:</td>
		<td><select id="type" style="font-size: 92%" name="type">
			<option value="0">Textseite</option>
			<option value="1">Produktseite</option>
		</select></td>
	</tr>
	<tr>
		<td><br></td>
	</tr>
	<tr>
		<td>Seitentitel:</td>
		<td colspan="3"><input type="text" name="name" size="30" maxlength="30"/></td>
	</tr>

	<tr>
		<td>Unterseite von:</td>
		<td colspan="3"><select id="parent" style="font-size: 92%" name="parent">
		<option value="">Neue Hauptseite</option>
		<?php
		$aArray = $this->aDisplayedContent['parents'];
		if(isset($this->aDisplayedContent['parentID'])){
		$iParentID = $this->aDisplayedContent['parentID'];
		}else{
		    $iParentID = '';
		}

		foreach($aArray as $aElement){
		    $iPageID = $aElement['id'];
		    $sPageName = $aElement['name'];
		    $sSelected = '';
		    if($iParentID == $iPageID){
		        $sSelected = "selected";
		    }
			echo "<option value='$iPageID' $sSelected>$sPageName</option>";

			}?>

		</select></td>
	</tr>
		<tr>
		<td>Sichtbar:</td>
		<td><select id="visible" style="font-size: 92%" name="visible">
			<option value="1">Ja</option>
			<option value="0">Nein</option>
		</select></td>
	</tr>
	<tr>
		<td></td>
		<td></td>
		<td></td>
		<td align="right"><input type="submit" value="Speichern"></td>
	</tr>

	</form>

</table>
